<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Quản lý nội dung</title>
</head>
<body>
	<s:url action="Content" var="addContent">
		<s:param name="actionType">add</s:param>
	</s:url>
	<s:a href="%{addContent}">Add content</s:a>
	<br>
	<form action="Save1">
		<table border="1">
			<tr>
				<td><table border="1" >
					<thead>
						<tr>
							<th>Id Content</th>
							<th>Content Name</th>
               				<th>Date Update</th>
               				<th>Detail Content</th>
                			<th>Action</th>
						</tr>
					</thead>
					
					<tbody>
        				<s:iterator status="status" value="contents">
            				<tr>								
            					<td><s:property value="id_content"></s:property></td>
								<td><s:property value="name_content"></s:property></td>
                				<td><s:property value="date_update"></s:property></td>
                				<td><s:property value="detail_content"></s:property></td>
	               				<td><table><tr>
	               					<td>
	               					<a href="<s:url action="deleteContent"><s:param name="idContent1" value="idContent1"></s:param></s:url>">Delete</a>
								    </td>
								    <td>
	               					<a href="<s:url action="editContent"><s:param name="idContent2" value="idContent2"></s:param></s:url>">Edit</a>
								    </td>
	               				</tr></table></td>
                			</tr>
       					</s:iterator>
   					</tbody>
				</table></td>
			</tr>
		</table>
     	</form>	 
	
</body>

</html>